/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.lnu.ums.entities;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;


@Entity
@Table(name="Printed")
// print is something that was printed, like book or magazine
public class Print extends MaterialValue{

    @ManyToOne
    @JoinColumn    
    private Publication publication;

    @Column
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date printDate;

    @Column(name="pagesNumber")
    private Integer pages;

    public Date getPrintDate() {
        return printDate;
    }

    public void setPrintDate(Date imprintDate) {
        this.printDate = imprintDate;
    }

    public Integer getPages() {
        return pages;
    }

    public void setPages(Integer pages) {
        this.pages = pages;
    }

    public Publication getPublication() {
        return publication;
    }

    public void setPublication(Publication publication) {
        this.publication = publication;
    }
}
